<?php
	$css_list[0]['url'][] = './tpl/css/zone.css';
	$js_list[0] = './tpl/js/zone.js';
?>
<!--{template inc/header}-->
<!--{template inc/u/u_menu}-->
<div class="wrapper">
	<div class="zone_left">
		<ul class="zone_tab clearfix">
			<li class="c"><a href="{u u/follow uid=$home_uid}">{$_FANWE['home_user_names']['short']}的关注</a></li>
			<li><a href="{u u/fans uid=$home_uid}">{$_FANWE['home_user_names']['short']}的粉丝</a></li>
		</ul>
		<ul class="people_list clearfix" ptype="follow">
		<!--{loop $user_list $follow_user}-->
		<li class="clearfix PEOPLE_ID_BOX" id="people_id_{$follow_user['uid']}">
			<a href="{u u/index uid=$follow_user['uid']}"><img class="avt icard GUID" uid="{$follow_user['uid']}" src="{avatar $follow_user['avatar'] m}" alt="{$follow_user['user_name']}" width="48"></a>
			<div class="people_info">
				<a class="n icard bc GUID" uid="{$follow_user['uid']}" href="{u u/index uid=$follow_user['uid']}">{$follow_user['user_name']}</a><br>
				<!--{if !empty($follow_user['reside_province'])}-->
				<span>{$follow_user['reside_province']} {$follow_user['reside_city']}</span>
				<!--{/if}-->
				<span>粉丝{$follow_user['fans']}人</span>
				<!--{if !empty($follow_user['share'])}-->
				<p>{cutstr $follow_user['share']['content'] 100}({$follow_user['share']['time']})</p>
				<!--{/if}-->
			</div>
			<div class="people_toolbar">
				<!--{if $home_uid == $_FANWE['uid']}-->
				<div class="follow1"{if !$follow_user['is_follow']} style="display:none;"{/if}>
				<span>已互相关注</span>
				<br>
				</div>
				<div class="follow0"{if $follow_user['is_follow']} style="display:none;"{/if}>
				<span>已关注</span>
				<br>
				</div>
				<a class="unFollow" href="javascript:void(0);" onclick="$.User_Follow($follow_user['uid'],this,MeUpdateUserFollow);">取消关注</a>
				<br>
				<div class="follow1"{if !$follow_user['is_follow']} style="display:none;"{/if}>
				<a class="delFans" href="javascript:void(0);" onclick="$.Remove_Fans($follow_user['uid'],this,DeleteUserFans);">移除粉丝</a>
				</div>
				<!--{else}-->
				<div class="follow1"{if !$follow_user['is_follow']} style="display:none;"{/if}>
				<span>已关注</span>
				<br>
				<a class="unFollow" href="javascript:void(0);" onclick="$.User_Follow($follow_user['uid'],this,MeUpdateUserFollow);">取消关注</a>
				</div>
				<a class="addfo follow0" href="javascript:;" onclick="$.User_Follow($follow_user['uid'],this,UpdateUserFollow);"{if $follow_user['is_follow']} style="display:none;"{/if}>+加关注</a>
				<!--{/if}-->
			</div>
		</li>
		<!--{/loop}-->
	</ul>
	<div class="pagination">
		<!--{subtemplate inc/pages}-->
	</div>
</div>
<div class="zone_right">
		<!--{template inc/u/u_me_list}-->
	</div>
</div>
<script type="text/javascript">
function MeUpdateUserFollow(obj,result)
{
	$(obj).parents('.PEOPLE_ID_BOX').slideUp("slow");
}

function UpdateUserFollow(obj,result)
{
	var parent = $(obj).parent();
	if(result.status == 1)
	{
		$('.follow0',parent).hide();
		$('.follow1',parent).show();
	}
	else
	{
		$('.follow0',parent.parent()).show();
		$(obj).parent().hide();
	}
	
}

function DeleteUserFans(obj,result)
{
	var parent = $(obj).parent().parent();
	if(result.status == 1)
	{
		$('.follow1',parent).hide();
		$('.follow0',parent).show();
	}
}
</script>
<!--{template inc/footer}-->
